<div class="unidades view">
<h2><?php  __('Unidade');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $unidade['Unidade']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $unidade['Unidade']['nombre']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Cartilla'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($unidade['Cartilla']['id'], array('controller' => 'cartillas', 'action' => 'view', $unidade['Cartilla']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modulo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($unidade['Modulo']['id'], array('controller' => 'modulos', 'action' => 'view', $unidade['Modulo']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Metodologia'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($unidade['Metodologia']['id'], array('controller' => 'metodologias', 'action' => 'view', $unidade['Metodologia']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Grado'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($unidade['Grado']['id'], array('controller' => 'grados', 'action' => 'view', $unidade['Grado']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Area'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($unidade['Area']['id'], array('controller' => 'areas', 'action' => 'view', $unidade['Area']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Unidade', true), array('action' => 'edit', $unidade['Unidade']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Unidade', true), array('action' => 'delete', $unidade['Unidade']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $unidade['Unidade']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Unidades', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Unidade', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Cartillas', true), array('controller' => 'cartillas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cartilla', true), array('controller' => 'cartillas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Modulos', true), array('controller' => 'modulos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Modulo', true), array('controller' => 'modulos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Metodologias', true), array('controller' => 'metodologias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Metodologia', true), array('controller' => 'metodologias', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Grados', true), array('controller' => 'grados', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Grado', true), array('controller' => 'grados', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Areas', true), array('controller' => 'areas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Area', true), array('controller' => 'areas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Proyectos', true), array('controller' => 'proyectos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Proyecto', true), array('controller' => 'proyectos', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Proyectos');?></h3>
	<?php if (!empty($unidade['Proyecto'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nombre'); ?></th>
		<th><?php __('Unidade Id'); ?></th>
		<th><?php __('Cartilla Id'); ?></th>
		<th><?php __('Modulo Id'); ?></th>
		<th><?php __('Area Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($unidade['Proyecto'] as $proyecto):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $proyecto['id'];?></td>
			<td><?php echo $proyecto['nombre'];?></td>
			<td><?php echo $proyecto['unidade_id'];?></td>
			<td><?php echo $proyecto['cartilla_id'];?></td>
			<td><?php echo $proyecto['modulo_id'];?></td>
			<td><?php echo $proyecto['area_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'proyectos', 'action' => 'view', $proyecto['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'proyectos', 'action' => 'edit', $proyecto['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'proyectos', 'action' => 'delete', $proyecto['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $proyecto['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Proyecto', true), array('controller' => 'proyectos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
